package com.topc.search.service;



import com.topc.search.domain.User;

import java.util.List;

public interface UserService {

       void createList(List<User> userList);

       void create(User user);

       void update(User user);

       List<User> searchAll();

       void delete(Long id);

       List<User> searchRange(String keyField,double gte,double lte);

       List<User> searchTerm(String keyField,Object keyWord);

       List<User> searchPrefix(String keyField,Object keyWord);

       List<User> searchWildcard(String keyField,Object keyWord);

       List<User> searchIds(String ... ids);

       List<User> searchFuzzy(String keyField,Object keyWord);

       List<User> searchBool(String keyField,Object keyWord,String keyFiledRange,double gte, double lte);

       List<User> searchMultiMatch(Object keyWord,String ... keyFields);

       List<User> searchQueryString(String keyField,Object keyWord);

       List<User> searchHighlight(String keyField,Object keyWord);

       List<User> searchFormAndSize(Integer pageNum, Integer pageSize);

       List<User> searchSort(Object keyWord);

       List<User> searchSource(String ...keyFields);

       List<User> searchFilterTerm(String keyField,Object keyWord);

       List<User> searchGeoBounding(Double tllat, Double tllon,Double brlat, Double brlon);

       List<User> searchGeoDistance(double latitude, double longitude,double distance);

}
